package com.woorigil.social.domain.member;

import java.util.Date;

import org.apache.commons.lang.StringUtils;

import com.woorigil.social.BaseObject;

public class Subscribe extends BaseObject {
	private String email;
	private String keyword;
	private String emailReceiveYn;
	private Date registeDate;

	public Subscribe() {
	}
	
	public Subscribe(String email, String keyword) {
		this.email = email;
		this.keyword = keyword;
		this.registeDate = new Date();
	}
	
	public void addKeyword(String keyword) {
		if (StringUtils.isNotBlank(keyword)) {
			this.keyword += "," + keyword;
		}
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getEmailReceiveYn() {
		return emailReceiveYn;
	}
	public void setEmailReceiveYn(String emailReceiveYn) {
		this.emailReceiveYn = emailReceiveYn;
	}
	public Date getRegisteDate() {
		return registeDate;
	}
	public void setRegisteDate(Date registeDate) {
		this.registeDate = registeDate;
	}
}